const { defineConfig } = require('@vue/cli-service')
const path = require('path');
module.exports = defineConfig({
  transpileDependencies: true,
  configureWebpack: {  
    resolve: {  
      alias: {  
        '@': path.resolve(__dirname, './src') // 设置 @ 指向 src 目录  
      }  
    }  
  },  
  devServer: {  
    proxy: {  
      '/api': {  
        target: 'http://localhost:8080', // 你的后端服务器地址  
        changeOrigin: true,  
        pathRewrite: { '^/api': '' } // 重写路径  
      }  
    },  
    port: 8081 
  }  
})
